package com.victor.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Entity
@Table(name = "shopuserxq")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ShopuserXQ {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "id", unique = true, nullable = false, length = 11)
	private Integer id;// 编号,

	@Column(name = "shopid", length = 50)
	private String shopid;// 关联商家id

	@Column(name = "name", length = 50)
	private String name;// 名称,

	@Column(name = "price", length = 50)
	private String price;// 价格,

	@Column(name = "jianjie", length = 50)
	private String jianjie;// 简介,

	@Column(name = "roomsize", length = 50)
	private String roomsize;// 房间平米数,

	@Column(name = "bedclass", length = 50)
	private String bedclass;// 床类型,

	@Column(name = "ifwifi", length = 50)
	private String ifwifi;// 免费wifi,

	@Column(name = "ifbreakfast", length = 50)
	private String ifbreakfast;// 是否有早餐,

	@Column(name = "ifwindow", length = 50)
	private String ifwindow;// 是否有窗,

	@Transient
	private List<ShopuserXQphoto> shopuserxqphoto;// 每个房间多张介绍图片

	@Transient
	private List<ShopuserXQyudingsm> shopuserxqyudingsm;// 每个房间有多个预订说明

}
